package lijun.parking.Entity;

/**
 * 管理员 实体类
 */
public class Admin {
    private String userName = "admin";
//    private String password = "ynu#admin";
    private String password = "admin";
    /**
     * 用户类型: 0:管理员 1:普通用户
     */
    private int type = 0;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Admin() {
    }


    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    /**
     * 只提供了普通用户的注册
     */
    public Admin(String userName, String password) {
        this.userName = userName;
        this.password = password;
        this.type = 1;
    }
}
